package com.chanzany.adapter.classBased;

public class Phone {
    //充电
    public void charging(IVoltage5V voltage5V){
        if (voltage5V.output5V()==5){
            System.out.println("充电中");
        }else System.out.println("无法充电");
    }
}
